/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.entity;

import com.thinkgem.jeesite.modules.app.entity.ADict;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 广告定制Entity
 * @author 开发
 * @version 2016-07-13
 */
public class AdMake extends DataEntity<AdMake> {
	
	private static final long serialVersionUID = 1L;
	private ScreenPoint point;		// 点位编号
//	private ScreenPoint point;
	private User user;		// 用户编号
	private String adTime;		// 广告时长
	private String adCycle;		// 播放周期
	private String images;		// 图集
    private String rmbCount;     //广告总钱数
	
	public AdMake() {
		super();
	}


	@Length(min=1, max=64, message="点位编号长度必须介于 1 和 64 之间")
	public ScreenPoint getPoint(){
		return point;
	}
	public void setPoint(ScreenPoint point) {
		this.point = point;
	}

	public AdMake(String id){
		super(id);
	}


//	public String getPointId() {
//		return pointId;
//	}

//	public void setPoint(String pointId) {
//		this.pointId = pointId;
//	}
	
	@NotNull(message="用户编号不能为空")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=1, max=1, message="广告时长长度必须介于 1 和 1 之间")
	public String getAdTime() {
		return adTime;
	}

	public void setAdTime(String adTime) {
		this.adTime = adTime;
	}
	
	@Length(min=1, max=1, message="播放周期长度必须介于 1 和 1 之间")
	public String getAdCycle() {
		return adCycle;
	}

	public void setAdCycle(String adCycle) {
		this.adCycle = adCycle;
	}
	
	@Length(min=0, max=6000, message="图集长度必须介于 0 和 6000 之间")
	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

    public String getRmbCount(){ return rmbCount; }

    public void setRmbCount(String rmbCount){ this.rmbCount = rmbCount; }
	
}